const express = require('express');
const { uploading, formatResponse } = require('../utils/tool');
const router = express.Router();



router.post('/', uploading.single('file'), function (req, res, next) {
  const path = '/static/uploads/' + req.file.filename
  res.send(formatResponse(0, "上传成功", path));
})

module.exports = router;